package com.linkallcloud.core.www;

import java.io.Serializable;
import java.util.Map;

import com.linkallcloud.core.dto.Sid;

public interface ISimpleUser extends Serializable {

    static String SESSION_USER_KEY = "_LAC_SESSION_USER_KEY_";

    String getLoginName();
    void setLoginName(String loginName);
    
    int getUserClazz();
    String getUserType();
    void setUserType(String userType);
    
    Sid getApp();
    Long appId();
    String appUuid();
    String appName();
    String appCode();
    
    String[] getMenuPermissions();
    boolean hasMenuPermission(String res);
    
    public String getOrgDataSource();

    public Map<String, String> getExtras();
    public void setExtras(Map<String, String> esxtras);
    
    public int getTtl();// unit:Minute
    public void setTtl(int ttl);
    
    public String getNonce();
    public void setNonce(String nonce);
    
    public String getSalt();
    public void setSalt(String salt);
}
